package com.cskaoyan.controller.permissiondata;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Auther: Yang Yi-zhou
 * @Date: 2022/9/9 09:17
 * @Description:
 */
@NoArgsConstructor
@Data
public class PermissionData {

    private String id;
    private String label;
    private List<ChildrenDTO> children;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class ChildrenDTO {
        private String id;
        private String label;
        private List<ChildrenDTO.GrandChildrenDTO> children;

        @NoArgsConstructor
        @AllArgsConstructor
        @Data
        public static class GrandChildrenDTO {
            private String id;
            private String label;
            private String api;
        }
    }
}
